﻿using LimaLims.Core.Entity.Equipment;
using LimaLims.Core.Entity.System;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LimaLims.Core.Entity.Basic
{
    /// <summary>
    /// 试验站信息
    /// </summary>
    [Comment("试验站信息")]
    public class ExperimentStation : DEntityTenant
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Comment("名称")]
        [Required, MaxLength(20)]
        public string Name { get; set; }

        /// <summary>
        /// 检验员
        /// </summary>
        [Comment("检验员")]
        public string Inspector { get; set; }

        /// <summary>
        /// 质检科长
        /// </summary>
        [Comment("质检科长")]
        public string QualityChief { get; set; }

        /// <summary>
        ///  审核人
        /// </summary>
        [Comment("审核人")]
        public string Checker { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Comment("备注"), MaxLength(100)]
        public string Remark { get; set; }

        /// <summary>
        /// 班组集合
        /// </summary>
        public ICollection<Team> Teams { get; set; }

        /// <summary>
        /// 仪器集合
        /// </summary>
        public ICollection<EquipmentInfo> EquipmentInfos { get; set; }
    }
}
